//
//  RegisterRequest.m
//  EasyToo
//
//  Created by YuanDee on 13-8-24.
//
//  会员注册

#import "RegisterRequest.h"

@implementation RegisterRequest

- (id)initWithTelephone:(NSString *)telephone Password:(NSString *)password CardId:(NSString *)cardId Delegate:(id<ServerCommunicationDelegate>)delegate
{
    self = [super init];
    if (self) {
        self.telephone = telephone;
        self.password = password;
        self.cardId = cardId;
        self.delegate = delegate;
        self.requestName = @"RegisterResponse";
        
        [self.bodyJsonDict setObject:self.telephone forKey:@"telphone"];
        [self.bodyJsonDict setObject:self.password forKey:@"pwd"];
        [self.bodyJsonDict setObject:self.cardId forKey:@"cardId"];
        [self.headerJsonDict setObject:@"016005" forKey:@"TranCode"];

        
        [self buildJsonRequest];
    }
    return self;
}

- (void)dealloc
{
    self.telephone = nil;
    self.password = nil;
    self.cardId = nil;
    [super dealloc];
}

@end
